package com.fh.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.utils.bean.*;
import com.fh.service.RoleService;
import com.fh.mapper.RoleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author Administrator
* @description 针对表【role(角色表)】的数据库操作Service实现
* @createDate 2023-04-21 10:52:37
*/
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role>
implements RoleService{

    @Autowired
    private RoleMapper roleMapper;
    /**
     * @description: 添加
     * @author whf
     * @date 2023/5/17 16:40
     * @param role
     */
    @Override
    public void add(Role role) {
        roleMapper.insert(role);
    }
}
